<script setup lang="ts"></script>

<template>
  <div class="flex w-full h-screen overflow-hidden">
    <div class="w-fit">
      <SlideBar />
    </div>
    <div class="flex flex-col w-full">
      <HeaderBar />
      <div class="box-border flex-1 bg-white dark:dark:bg-darkBg">
        <routerView v-slot="{ Component }">
          <Transition name="fade" mode="out-in" appear>
            <component :is="Component" />
          </Transition>
        </routerView>
      </div>
    </div>
  </div>
</template>

<style scoped>
.fade-enter-active,
.fade-leave-active {
  transition: all .3s ease-in-out;
}

.fade-enter-from {
  opacity: 0;
  transform: translateX(-10px);
}

.fade-leave-to {
  opacity: 0;
  transform: translateX(20px);
}
</style>
